package com.jdrx.sw.sewage.dao;

import com.jdrx.platform.commons.rest.beans.dto.IdDTO;
import com.jdrx.sw.sewage.beans.entity.NewsPO;
import com.jdrx.sw.sewage.beans.vo.NewsVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsDAO {

    Integer countNews();

    void add(NewsPO po);

    void delete(IdDTO id);

    void update(NewsPO po);

    List<NewsVO> findList();

    NewsVO findById(IdDTO dto);
}